package com.panasonic.web.service;


import com.panasonic.web.domain.cms.CmsAttachment;

import java.util.List;

/**
 * 附件Service接口
 * 
 * @author lwf
 * @date 2021-11-12
 */
public interface ICmsAttachmentService 
{
    /**
     * 查询附件
     * 
     * @param id 附件ID
     * @return 附件
     */
    public CmsAttachment selectCmsAttachmentById(Long id);

    /**
     * 查询附件列表
     * 
     * @param cmsAttachment 附件
     * @return 附件集合
     */
    public List<CmsAttachment> selectCmsAttachmentList(CmsAttachment cmsAttachment);

    /**
     * 新增附件
     * 
     * @param cmsAttachment 附件
     * @return 结果
     */
    public int insertCmsAttachment(CmsAttachment cmsAttachment);

    /**
     * 修改附件
     * 
     * @param cmsAttachment 附件
     * @return 结果
     */
    public int updateCmsAttachment(CmsAttachment cmsAttachment);

    /**
     * 批量删除附件
     * 
     * @param ids 需要删除的附件ID
     * @return 结果
     */
    public int deleteCmsAttachmentByIds(Long[] ids);

    /**
     * 删除附件信息
     * 
     * @param id 附件ID
     * @return 结果
     */
    public int deleteCmsAttachmentById(Long id);
}
